﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailReceiveList.aspx.cs" Inherits="CRM.Web.MessagingManage.EmailReceiveList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="EMAIL-收件箱" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
<div style="width: 100%">
    <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                <tr>
                    <td class="title"><div  class="nowrap">
                        发件人姓名:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFROM_NAME" runat="server" CssClass="txt" Style="width: 80px;"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        收件人地址:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtTO_ADDR" runat="server" CssClass="txt" Style="width: 70px;"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        接收时间:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                            ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                    </td>
                    <td class="content">
                        <div style="width: 100px;" class="nowrap">
                            <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" />
                        </div>
                    </td>
                </tr>
            </table>
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
            AllowSorting="True"  SortExpressionValue="AUTOID"  SortDirectionValue="DESC">
            <Columns>
			    <asp:TemplateField HeaderText="AUTOID" SortExpression="AUTOID">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyAUTOID" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>' Text='<%# Bind("AUTOID") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="CALLID" HeaderText="呼叫标识"  SortExpression="CALLID" Visible="False"/>
			<asp:BoundField DataField="FROM_ADDR" HeaderText="发件人"  SortExpression="FROM_ADDR" Visible="False"/>
			    <asp:TemplateField HeaderText="发件人姓名" SortExpression="FROM_NAME">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyFROM_NAME" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>' Text='<%# Bind("FROM_NAME") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="TO_ADDR" HeaderText="收件人地址"  SortExpression="TO_ADDR" />
			<asp:BoundField DataField="CC_ADDR" HeaderText="抄送人地址"  SortExpression="CC_ADDR" />
			<asp:BoundField DataField="BCC_ADDR" HeaderText="BCC_ADDR"  SortExpression="BCC_ADDR" Visible="False"/>
			<asp:BoundField DataField="SUBJECTS" HeaderText="主题"  SortExpression="SUBJECTS" />
			<asp:BoundField DataField="BODYS" HeaderText="内容"  SortExpression="BODYS" Visible="False" />
			<asp:BoundField DataField="SIZE_KB" HeaderText="SIZE_KB"  SortExpression="SIZE_KB"  Visible="False" />
			<asp:BoundField DataField="ATTACH1" HeaderText="ATTACH1"  SortExpression="ATTACH1"  Visible="False" />
			<asp:BoundField DataField="ATTACH2" HeaderText="ATTACH2"  SortExpression="ATTACH2"  Visible="False" />
			<asp:BoundField DataField="ATTACH3" HeaderText="ATTACH3"  SortExpression="ATTACH3"  Visible="False" />
			<asp:BoundField DataField="ATTACH4" HeaderText="ATTACH4"  SortExpression="ATTACH4"  Visible="False" />
			<asp:BoundField DataField="ATTACH5" HeaderText="ATTACH5"  SortExpression="ATTACH5"  Visible="False" />
			<asp:BoundField DataField="FILE_EBX" HeaderText="FILE_EBX"  SortExpression="FILE_EBX"  Visible="False"/>
			<asp:BoundField DataField="LEVELS" HeaderText="LEVELS"  SortExpression="LEVELS"   Visible="False"/>
			<asp:BoundField DataField="SDATE" HeaderText="SDATE"  SortExpression="SDATE"  Visible="False" />
			<asp:BoundField DataField="STIME" HeaderText="STIME"  SortExpression="STIME"  Visible="False" />
			<asp:BoundField DataField="VFLAG" HeaderText="VFLAG"  SortExpression="VFLAG"  Visible="False"/>
			<asp:BoundField DataField="DELETED" HeaderText="DELETED"  SortExpression="DELETED"  Visible="False" />
			<asp:BoundField DataField="GHID" HeaderText="GHID"  SortExpression="GHID" Visible="False"/>
			<asp:BoundField DataField="ETYPE" HeaderText="ETYPE"  SortExpression="ETYPE" Visible="False" />
			<asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
			<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;">
                <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
                <headerstyle width="90px" />
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
    </div>
</div>
</div>
    </form>
</body>
</html>
